package ${controllerPackageStr};

import com.differ.jackyun.frame.business.adaptor.ICommonServiceAdaptor;
import com.differ.jackyun.frame.business.controller.ICommonController;
import ${filterPackageStr}.${classNameNew}CreateDTO;
import ${filterPackageStr}.${classNameNew}FilterDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * ${entityDesc} - CONTROLLER
 *
 * @author ${author}
 * @since ${time}
 */
@RestController
@RequestMapping(value = "/jei-service/base/${classNameNewLow}", produces = {"application/json;charset=utf-8"})
public class ${classNameNew}Controller implements
        ICommonController<${classNameNew}FilterDTO, ${classNameNew}CreateDTO> {

    @Autowired
    private ${classNameNew}ServiceImpl ${classNameNewLow}Service;

    /**
     * 获取对应的公共服务实例
     *
     * @return 返回对应服务实例
     */
    @Override
    public ICommonServiceAdaptor getCommonServiceAdaptor() {
        return this.${classNameNewLow}Service;
    }
}